package com.xuzimian.demo.java.proxy.dynamic.performance

import com.xuzimian.demo.java.proxy.dynamic.performance.ProxyFactory.createCglibProxy
import com.xuzimian.demo.java.proxy.dynamic.performance.ProxyFactory.createJavassistBytecodeDynamicProxy
import com.xuzimian.demo.java.proxy.dynamic.performance.ProxyFactory.createJavassistDynProxy
import com.xuzimian.demo.java.proxy.dynamic.performance.ProxyFactory.createJdkProxy

fun main() {
    System.out.println(createJdkProxy().processBusiness())
    System.out.println(createCglibProxy().processBusiness())
    System.out.println(createJavassistDynProxy()!!.processBusiness())
    System.out.println(createJavassistBytecodeDynamicProxy()?.processBusiness())
}
